package com.beiju.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 优惠券信息表
 * </p>
 *
 * @author beiju
 * @since 2021-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_coupon")
@ApiModel(value="Coupon对象", description="优惠券信息表")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "优惠券名称")
    private String name;

    @ApiModelProperty(value = "优惠券图标")
    private String icon;

    @ApiModelProperty(value = "推广图片")
    private String bannerPic;

    @ApiModelProperty(value = "优惠券类型：1：天天可领；2：限时秒杀")
    private Integer type;

    @ApiModelProperty(value = "商家推广appid")
    private String appid;

    @ApiModelProperty(value = "推广链接")
    private String path;

    @ApiModelProperty(value = "商家ID")
    private Integer businessId;


}
